package com.ycl.job.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbf.common.entity.my.BaseExportTaskHeader;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 袁成龙
 * @since 2020-09-28
 */
public interface BaseExportTaskHeaderMapper extends BaseMapper<BaseExportTaskHeader> {

    @Select("select max(id) from base_export_task_header")
    int getheaderid();

    @Select("select max(id) from base_export_task_header")
    BaseExportTaskHeader getheader();

    @Update("update base_export_task_header set task_status=2 where id =#{id}")
    int updateHeaderstatus(Integer id);

}
